@extends('Admin.layout.layout')

@section('content')

    <div class="row"> 
        <div class="col-lg-12">
            <h1 class="page-header">广告添加</h1>
     </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                广告添加
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">
					@if (count($errors) > 0)
					    <div class="alert alert-danger">
					        <ul>
					            @foreach ($errors->all() as $error)
					                <li>{{ $error }}</li>
					            @endforeach
					        </ul>
					    </div>
					@endif

                        <form action="{{url('/admin/adver/insert')}}" method="post" enctype="multipart/form-data">

                            <div class="form-group">
                                <label>广告商</label>
                                <input class="form-control" type="text" name="aname" value="">
                            </div>
                             
                             <div class="form-group">
                                <label>广告挂起时间</label>
                                <input class="form-control" type="datetime" name="atime" value="">
                            </div>
                             <div class="form-group">
                                <label>广告结束时间</label>
                                <input class="form-control" type="datetime" name="aetime" value="">
                            </div>
                            <div class="form-group">
                                <label>广告收费</label>
                                <input class="form-control" type="text" name="aprice" value="">
                            </div>
                            <div class="form-group">
                                <label>广告内容</label>
                                <input class="form-control" type="file" name="atext" value="">
                            </div>
                            
                            {{csrf_field()}}
                            <button  class="btn btn-primary" type="submit">添加广告</button>
                          
                        </form>
                    </div>            
                    
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
@endsection
